package com.atguigu.srb.sms.feign.fallback;

import com.atguigu.srb.base.response.R;
import com.atguigu.srb.sms.feign.CoreFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class CoreFeignClientFallback implements CoreFeignClient {
    @Override
    public R isRegisted(String mobile) {
        //记录异常日志
        log.error("远程检查手机号是否被占用失败：{}",mobile);
        return R.error().msg("失败");
    }
}
